package com.ruoyi.backups.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * OOS存储配置对象 biz_oos_config
 * 
 * @author ruoyi
 * @date 2024-09-06
 */
public class OosConfig extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主鍵 */
    private Long id;

    /** 备注名称 */
    @Excel(name = "备注名称")
    private String name;

    /** 存储类型 */
    @Excel(name = "存储类型")
    private String oosType;

    /** 秘钥 */
    @Excel(name = "秘钥")
    private String accessKey;

    /** 秘钥值 */
    @Excel(name = "秘钥值")
    private String accessSecret;

    /** 链接节点 */
    @Excel(name = "链接节点")
    private String endpoint;

    /** 存储桶名称 */
    @Excel(name = "存储桶名称")
    private String bucketName;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setOosType(String oosType) 
    {
        this.oosType = oosType;
    }

    public String getOosType() 
    {
        return oosType;
    }
    public void setAccessKey(String accessKey) 
    {
        this.accessKey = accessKey;
    }

    public String getAccessKey() 
    {
        return accessKey;
    }
    public void setAccessSecret(String accessSecret) 
    {
        this.accessSecret = accessSecret;
    }

    public String getAccessSecret() 
    {
        return accessSecret;
    }
    public void setEndpoint(String endpoint) 
    {
        this.endpoint = endpoint;
    }

    public String getEndpoint() 
    {
        return endpoint;
    }
    public void setBucketName(String bucketName) 
    {
        this.bucketName = bucketName;
    }

    public String getBucketName() 
    {
        return bucketName;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("oosType", getOosType())
            .append("accessKey", getAccessKey())
            .append("accessSecret", getAccessSecret())
            .append("endpoint", getEndpoint())
            .append("bucketName", getBucketName())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
